'use strict';

const Controller = require('egg').Controller;

class RoomController extends Controller {
  async getRoom() {
    const result = await this.ctx.curl('106.15.191.76/department/detail', {
      method: 'POST',
      contentType: 'json',
      data: {
        chName: this.ctx.request.body.chName,
      },
      dataType: 'json',
    });
    console.log(this.ctx.request.body.chName);
    this.ctx.body = result;
  }
}

module.exports = RoomController;
